<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript">
function searchId(){
	window.open("/${initParam.context_root }/customer/searchId.do", "pop","width=1000, height=600");
}
function searchPassword(){
	window.open("/${initParam.context_root }/customer/searchPassword.do", "pop","width=1000, height=600");
}
</script>


<form action="/${initParam.context_root }/customer/login.do" method="post" style="height: 430px;">
	<div style="float: center;">
		<table id="login_table" style="margin-left: 280px;">
			<tr>
				<td>
					<table>
						<tr>
							<td align="left"><label>ID</label></td>
							<td><input type="text" class="form-control" id="custId"
								placeholder="아이디를 입력하세요." name="custId" /></td>
						</tr>
						<tr>
							<td width="150" align="left"><label>Password</label></td>
							<td><input type="password" class="form-control"
								id="password" placeholder="비밀번호를 입력하세요." name="password" /></td>
						</tr>
						<c:if test="${requestScope.error_message != null}">
							<div align="right" style="color: red;">${requestScope.error_message}</div>
						</c:if>
						<tr style="height: 50px" class="loginBtn">
							<td colspan="2" align="right"
								style="border-bottom: 2px solid gray;">
								<button type="submit" class="btn btn-info btn-sm">로그인</button>
							</td>
						</tr>
						<tr style="height: 40px">
							<td colspan="2" align="right"><strong>로그인 정보를잊어버리셨나요?</strong></td>
						</tr>
						<tr style="height: 20px">
							<td colspan="2" align="right">
								<button type="button" class="btn btn-default btn-xs" onclick="searchId();">ID찾기</button>
								<button type="button" class="btn btn-default btn-xs" onclick="searchPassword();">PASSWORD찾기</button>
							</td>
						</tr>
					</table>
				</td>
				<td width="50px"></td>
				<td>
					<div style="float: right">
						<img src="/${initParam.context_root }/img/droowaTip.jpg" />
					</div>
				</td>
			</tr>
		</table>
	</div>
</form>
